<template>
		<view :class="['mybrankmask',IsShow? 'is':'']" >
			<view style="padding: 20rpx;">
				<view class="MymaskList">
					<view class="maskListItem" @click="NumberCk(1)">1</view>
					<view class="maskListItem" @click="NumberCk(2)">2</view>
					<view class="maskListItem" @click="NumberCk(3)">3</view>
					<view class="maskListItem" style="background-color: #FFA500;color: #fff;" @click="Cancelword()">取消
					</view>
				</view>
				<view class="MymaskList">
					<view class="maskListItem" @click="NumberCk(4)">4</view>
					<view class="maskListItem" @click="NumberCk(5)">5</view>
					<view class="maskListItem" @click="NumberCk(6)">6</view>
					<view class="maskListItem" style="background-color: #67C23A;color: #fff;" @click="Tuige()">退格</view>
				</view>
				<view class="MymaskList">
					<view class="maskListItem" @click="NumberCk(7)">7</view>
					<view class="maskListItem" @click="NumberCk(8)">8</view>
					<view class="maskListItem" @click="NumberCk(9)">9</view>
					<view class="maskListItem" style="background-color: #F56C6C;color: #fff;" @click="Clear()">清空</view>
				</view>
				<view class="MymaskList">
					<view class="maskListItem" @click="NumberCk(0)">0</view>
					<view class="maskListItem" @click="NumberCk('.')">.</view>
					<view class="maskListItem" style="background-color: #31BDEC;color: #fff;width: 48%;"
						@click="Next()">下一项</view>
				</view>
			</view>
		</view>
</template>


<script>
	export default {
		data() {
			return {
			}
		},
		props: {
			IsShow: {
				type: Boolean,
				default: false
			},
			myvalue: {
				type: [String, Number],
				default: ''
			},
			myevent: {
				type: String,
				default: ''
			}
		},
		methods: {
			NumberCk(val) {
			},
			Tuige() {
			},
			//取消按钮
			Cancelword() {
				this.$emit('Cancelword');
			},
			//清除按钮
			Clear() {
				var arr = {
					even: this.myevent,
					value: null
				};
				this.$emit('setValue', JSON.stringify(arr));
			},
			//下一个
			Next() {
				this.$emit('goNext');
			}
		}
	}
</script>

<style>
/* 	.Numberinput {
		display: flex;
		align-items: center;
	} */

/* 	.myfous {
		width: 1rpx;
		height: 41rpx;
		background-color: #000;
		display: block;
		animation: mytreat 1.5s linear infinite;
	} */

	.mybrankmask {
		width: 100%;
		height: 0rpx;
		background-color: #EBEEF5;
		position: fixed;
		z-index: 999;
		left: 0;
		bottom: 0;
		transition: .2s;
	}
	.is{
		height: 470rpx;
	}

	.mybrankmask .MymaskList {
		display: flex;
		width: 100%;
		justify-content: space-around;
		margin-bottom: 20rpx;
	}

	.mybrankmask .MymaskList .maskListItem {
		width: 23%;
		height: 90rpx;
		background-color: #fff;
		text-align: center;
		line-height: 90rpx;
		border-radius: 10rpx;
	}
</style>